package com.example.webdome.util;

import org.springframework.stereotype.Component;

@Component
public class spiltUtils {
    public String getEmail(String pe){

        // 使用冒号作为分隔符进行分割
        String[] parts = pe.split(":");

        if (parts.length == 2) {
            String email = parts[1].trim();    // 获取邮箱部分并去除前后空
            return email;
        } else {
            return "错误";
        }
    }
}
